<template>
  <view class="container">
    <view class="common_cell">
      <u-cell-group :border="false">
        <u-cell
          title="开"
          :border="false"
          isLink
          @click="goToDeviceInfoConfig(1)"
        />
        <u-cell
          title="关"
          :border="false"
          isLink
          @click="goToDeviceInfoConfig(2)"
        />
        <u-cell
          title="完全同步"
          :border="false"
          isLink
          @click="goToDeviceInfoConfig(3)"
        />
      </u-cell-group>
    </view>
  </view>
</template>
          
          <script>
export default {
  components: {},
  data() {
    return {
      //   温度弹窗开关
      open: false,
      value: 0,
    };
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {},

  onUnload() {},

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {},

  methods: {
    confirm() {
      this.open = false;
      this.$emit("confirm", this.value);
    },
    goToDeviceInfoConfig(_type) {
      const eventChannel = this.getOpenerEventChannel();
      eventChannel.emit("statusChange", _type);

      // 返回上两页
      uni.navigateBack({
        delta: 2,
      });
    },
  },
};
</script>
          
          <style lang="scss" scoped>
.container {
  background: #f6f7fb;
}

.temperaturePopupBox {
  padding: 25.568rpx 76.705rpx 0rpx 76.705rpx;
  background: rgba(255, 255, 255, 1);

  .popup_hearder {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  title {
    font-family: "Microsoft YaHei";
    font-size: 25.568rpx;
    font-weight: 290;
    line-height: 34.006rpx;
    text-align: center;
    color: rgba(0, 0, 0, 0.75);
  }

  .confirm {
    color: rgba(32, 132, 255, 1);
    font-family: "Microsoft YaHei";
    font-size: 27.273rpx;
    font-weight: 400;
    line-height: 36rpx;
    text-align: right;
  }
}

.popup_content {
  margin-top: 59.659rpx;
}
</style>
          